package com.baige.service.user.entity;

import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 账户提现申请记录
 * </p>
 *
 * @author wulg
 * @since 2018-12-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("user_account_cash_out_flow")
public class UserAccountCashOutFlow extends Model<UserAccountCashOutFlow> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private String id;
    /**
     * 账户id
     */
    @TableField("account_id")
    private String accountId;
    /**
     * 申请提现id
     */
    @TableField("cash_out_id")
    private String cashOutId;
    /**
     * 账户itemid
     */
    @TableField("account_item_id")
    private String accountItemId;
    /**
     * 订单编号
     */
    @TableField("order_code")
    private String orderCode;
    /**
     * 应退金额
     */
    @TableField("should_refund_money")
    private BigDecimal shouldRefundMoney;
    /**
     * 退款流水号
     */
    @TableField("trade_no")
    private String tradeNo;
    /**
     * 实际退款金额
     */
    @TableField("refund_money")
    private BigDecimal refundMoney;
    /**
     * 退款状态(1.退款失败  2.退款成功)
     */
    @TableField("refund_status")
    private Integer refundStatus;
    /**
     * 退款渠道(1.支付宝 2.微信 3.微信公众号)
     */
    @TableField("refund_channel")
    private Integer refundChannel;
    /**
     * 备注
     */
    private String memo;
    /**
     * 修改时间
     */
    @TableField("modify_time")
    private Date modifyTime;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
